/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import DAO.DAODanhMuc;
import DAO.DAOSanPham;
import POJO.DanhMuc;
import POJO.SanPham;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author Oho
 */
@WebServlet(name = "TrangChu", urlPatterns = {"/TrangChu.do"})
public class TrangChu extends HttpServlet {

    /**
     * Processes requests for both HTTP
     * <code>GET</code> and
     * <code>POST</code> methods.
     *
     * @param request servlet request
     * @param response servlet response
     * @throws ServletException if a servlet-specific error occurs
     * @throws IOException if an I/O error occurs
     */
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try {
            /* TODO output your page here. You may use following sample code. */
            out.println("");
            out.println("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>");
            out.println("<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv='Content-Type' content='text/html; charset=UTF-8'> ");
            out.println(" <title>Trang Danh Muc san pham</title>");
            out.println(" <!--<base href='http://muachung.vn/'>--><base href='.'>");
            out.println(" <link rel='shortcut icon' href=''> ");
            out.println(" <link href='./css/style.css' rel='stylesheet' type='text/css'>");
            out.println(" <link href='./css/new.css' rel='stylesheet' type='text/css'>");
            out.println(" <link href='./css/body.css' rel='stylesheet' type='text/css'>");
            out.println(" <link href='./css/default.css' rel='stylesheet' type='text/css'>");
            out.println(" <!--[if IE 8]><link rel='stylesheet' href='http://muachung2.todo.vn/style/ie8.css?v=16.12' type='text/css'/><![endif]-->");
            out.println(" <!--[if IE 7]><link rel='stylesheet' href='http://muachung2.todo.vn/style/ie7.css?v=16.12' type='text/css'/><![endif]-->");
            out.println(" <!--[if lte IE 6]><link rel='stylesheet' href='http://muachung2.todo.vn/style/ie6.css?v=16.12' type='text/css'/><![endif]-->");
            out.println(" ");
            out.println("</head>");
            out.println("<body><div id='formRegMail' style='display: none; '");
            out.println("<div class='regContent'><div class='text fl fixPNG'></div>");
            out.println("<div class='bgSubscribeEmail fl'><input type='text' name='email' id='sub-email' value='Nhập email của bạn' onfocus='javascript:if(this.value == &#39;Nhập email của bạn&#39;) this.value=&#39;&#39;;' onblur='javascript:if(this.value == &#39;&#39;)this.value=&#39;Nhập email của bạn&#39;;'></div><a href='javascript:void(0)' onclick='shop.header.email.registerCity()' class='bt_send_email'></a><a href='javascript:void(0)' onclick='shop.header.email.hideFormEmail()' class='bt_hide_email'>Ẩn [ x ]</a></div></div>");
            out.println("<h1 style='position:absolute;top:-15px;font-size:8px'>Trẻ em đang giảm giá, khuyến mại cực lớn</h1> <div class='wrap'>");
            out.println("<div class='header'>");
            out.println("<div class='headerBg'>");
            out.println("<div class='headerWidth'>");
            out.println("<div class='followOrder'>");
            out.println("<a href='javascript:void(0)' onclick='shop.customer.login.show();'>Quản lý đơn hàng</a>");
            out.println("</div>");
            out.println("<div class='headerLogo fl fixPNG' style='background-image:url(&#39;../images/logo.png?v=10.12&#39;)'>");
            out.println("<a href='http://muachung.vn/' title='Khám phá những giá trị tiềm ẩn | MuaChung.vn'><img src='images/icon/logo.png' width='227' height='62' alt='mua chung logo Muachung.vn'></a>");
            out.println("</div>");
            out.println("<div class='headerLeft'>");
            out.println("<div class='contactHeader'>");
            out.println("<div class='contactHeaderBg'>");
            out.println("<div class='regBlock fl'>");
            out.println("<div>");
            out.println("");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='customerLogin'>");
            out.println("<form name='customer_login_form' onsubmit='return shop.customer.loginHeader();' method='post' id='customer_login_form'>");
            out.println("<div class='fl mTop5'>");
            out.println("<input type='text' class='inputLogin' onfocus='if(this.value==this.title) this.value=&#39;&#39;;' onblur='if(this.value==&#39;&#39;) this.value=this.title;' value='Email đăng nhập' name='customer_email' id='customer_email' title='Email đăng nhập'>");
            out.println("</div>");
            out.println("<div class='fl mLeft5 mTop5'>");
            out.println("<input type='password' name='customer_password' class='inputPassword hidden' id='customer_password' onblur='shop.header.focusPass.blur(this)' onfocus='shop.header.focusPass.focus(this)'>");
            out.println("<input type='text' id='customer_password_txt' class='inputPassword' title='Mật khẩu' value='Mật khẩu' onfocus='shop.header.focusPass.focus(this)'>");
            out.println("</div>");
            out.println("<div class='fl mLeft5 mTop5'>");
            out.println("<input type='submit' onclick='shop.customer.loginHeader();' value='' class='button'>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("<div class='mTop5 extLogin'>");
            out.println("<div class='fl'>");
            out.println("<input type='checkbox' id='customer_save_login' class='checkbox' name='customer_save_login'>");
            out.println("<label for='customer_save_login' class='8e8e8e'>Ghi nhớ</label>");
            out.println("</div>");
            out.println("<div class='fr'>");
            out.println("<a href='javascript:void(0)' onclick='shop.customer.password.resendPassword()' title='Muachung sẽ gửi mật khẩu mới vào email của Quý khách'>Quên mật khẩu?</a> |");
            out.println("<a href='javascript:void(0)' onclick='shop.customer.register.show()' title='Hãy đăng ký tài khoản để nhận thưởng Gold khi mua hàng trên Muachung'>Đăng ký</a> |");
            out.println("<a href='javascript:void(0)' onclick='shop.customer.active.send()' title='Nếu Quý khách đã từng mua hàng trên Muachung, hãy gửi yêu cầu kích hoạt tài khoản cho Muachung'>Kích hoạt</a>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</div>");
            out.println("</form>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("<div class='headerBottom'>");
            out.println("<div class='topCat fl' style='background:none;'><div></div></div>");
            out.println("<a style='margin-left: 12px' class='buttonDeal buttonDealactive' href='http://muachung.vn/'>TRANG CHỦ</a>");
            out.println("<a style='margin-left: 5px' class='buttonDeal' href='http://muachung.vn/'>San Pham</a>");
            out.println("<a style='margin-left: 5px' class='buttonDeal' href='http://muachung.vn/'>Liên He</a>");
            out.println("<form id='form-search-mix' name='formSearchMix' action='http://muachung.vn/tim-kiem.html' method='get' onsubmit='return shop.search.checkKeyword()'>");
            out.println("<div class='searchBox fr'>");
            out.println("<div><input value='' name='keyword' type='text' class='inputSearch' id='inputSearch' autocomplete='off'><input type='submit' value='Tìm kiếm' class='buttonSearch'></div>");
            out.println("<div id='autoComplete' class='autoComplete hidden'>");
            out.println("<div class='completeContent' id='completeContent'>");
            out.println("</div>");
            out.println("</div>");
            out.println("</div>");
            out.println("</form>");
            out.println("<div class='c'></div>");
            out.println("</div>");
            out.println("");
            out.println("</div>");
            out.println("</div>");
            out.println("<script type='text/javascript'>");
            out.println("shop.header.conf.city = '[{'i':'22','t':'H/u00e0 N/u1ed9i','s':'ha-noi'},{'i':'29','t':'TP H/u1ed3 Ch/u00ed Minh','s':'tp-ho-chi-minh'},{'i':'15','t':'/u0110/u00e0 N/u1eb5ng','s':'da-nang'},{'i':'68','t':'Nha Trang','s':'nha-trang'},{'i':'26','t':'H/u1ea3i Ph/u00f2ng','s':'hai-phong'},{'i':'67','t':'V/u0169ng T/u00e0u','s':'vung-tau'},{'i':'14','t':'C/u1ea7n Th/u01a1','s':'can-tho'},{'i':0,'t':'To/u00e0n Qu/u1ed1c'}]';");
            out.println("</script></div>");
            out.println("<div class='main'>");
            out.println("    <div class='mainPadding newMainPadding'>");
            out.println("        <div class='rightNewMainBox'>");
            out.println("            <div>");
            out.println("            <!-- bat dau san pham --> ");
            out.println("<div class='mBottom15'>");
            out.println("<div class='boxTopLeft fixPNG'><div class='boxTop'></div><div class='boxTopRight fixPNG'></div><div class='c'></div></div>");
            out.println("<div class='boxConner2'>");
            out.println("<div class='titleSelling' align='left'>");
            out.println("</div>");
            out.println("<div style='padding:10px 25px 10px'>");


            ArrayList<SanPham> dssp = DAOSanPham.LayDanhSachSanPham();

            for (int i = 0; i < dssp.size(); i++) {
                SanPham sp = dssp.get(i);
                if (i % 2 == 0) {
                    out.println("<div class='itemSelling' id='fr'>");
                } else {
                    out.println("<div class='itemSelling'>");
                }
                out.println("<div class='SellingDate'>02/07: Toàn Quốc</div>");
                out.println("<div class='SellingLeft'>");
                out.println("<a href='http://muachung.vn/san-pham/p-8635/Nhung-cau-chuyen-vang.html' class='link_block'>");
                out.println("<div class='fixPNG discount_new'>");
                out.println("<span>Giảm</span><div>" + sp.getTiLeGiam() + "</div>");
                out.println("</div>");
                out.println("<img src='" + sp.getHinh() + "' width='330' height='211' alt='deal image'>");
                out.println("</a>");
                out.println("</div>");
                out.println("<div class='SellingTitle'>");
                out.println("<a href='http://muachung.vn/san-pham/p-8635/Nhung-cau-chuyen-vang.html'>" + sp.getTenSP() + "</a>");
                out.println("</div>");
                out.println("<div class='realTitle mTop5'>");
                out.println("<a href='http://muachung.vn/san-pham/p-8635/Nhung-cau-chuyen-vang.html'>" + sp.getChiTiet() + "</a>");
                out.println("</div>");
                out.println("<div class='realPrice'>");
                out.println("<div class='fl'>");
                out.println("<div class='SellingPrice'>" + sp.getGiaGiam() + " <span>VNĐ</span></div>");
                out.println("<div class='rootPrice'>Giá gốc: <strike>" + sp.getGiaGoc() + "</strike></div>");
                out.println("</div>");
                out.println("<a href='http://muachung.vn/san-pham/p-8635/Nhung-cau-chuyen-vang.html' class='SellingDetail'></a>");
                out.println("<div class='c'></div>");



                out.println("</div>");
                out.println("<div class='bSelling'>");
                out.println("<div class='bSellingLeft'>");
                out.println("<div class='bSellingRight'>");
                out.println("<div class='SellingInfoValue'>");
                out.println("Đã mua: <span>285</span>");
                out.println("</div>");
                out.println("<div class='SellingDateRest'>");
                out.println("Thời gian còn lại: <b><span class='DateItemNumber' id='timeTitle8635'><span id='timeTitleSmall8635'>1 ngày, 20h 25' 24s</span></span></b>");
                out.println("</div>								<div class='c'></div>");

                out.println("</div>");
                out.println("</div>");
                out.println("</div>");
                out.println("</div>");
            }
            out.println("<div class='c'></div>");




            out.println("<script type='text/javascript'>");
            out.println("					shop.timerObject.start(8635,'timeTitleSmall8635',1342069140,1,2,false,1341198000);");
            out.println("				</script>						<div class='mTop20 mBottom10'>");

            out.println("<div class='fl'></div>");
            out.println("<div class='fr paging'>");
            out.println("<span>Trang Đầu</span>");
            out.println(" <a href='#'>Trang 2</a>");
            out.println("<a href='#'>Trang Cuối</a>");
            out.println("</div>				<div class='c'></div>");
            out.println("</div>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='boxBottomLeft fixPNG'><div class='boxBottom'></div><div class='boxBottomRight fixPNG'></div><div class='c'></div></div>");
            out.println("</div></div>");
            out.println("        </div>");
            out.println("        <div class='leftNewMainBox'>");
            out.println("            <div>");
            out.println("<div class='mBottom15'>");
            out.println("<div class='boxConner2' style='padding:0;box-shadow: none;-moz-box-shadow:none;-webkit-box-shadow:none;border-radius: 0 0 2px 2px; -moz-border-radius: 0 0 2px 2px;'>");
            out.println("<div class='danh-muc'><h3>  DANH MỤC  </h3></div>");
            out.println("<ul class='categoryList '>");
            out.println("<!--bat dau danh muc-->");
            out.println("");

            ArrayList<DanhMuc> dsdm = DAODanhMuc.layDanhSachDanhMuc();
            for (DanhMuc dm : dsdm) {

                out.println("<li>");
                out.println("<a href='http://muachung.vn/danh-muc/c-7/khoa-hoc-di-choi.html' class='fixPNG'><span>" + dm.getTenDanhMuc() + "<b class='num'>(13)</b></span> </a>");
                out.println("<div class='c'></div>");
                out.println("</li>");
                
            }out.println("");
            out.println("</ul>");

            out.println("<div class='c'></div>");
            out.println("");
            out.println("</div>");
            out.println("</div>");

            out.println("");

            out.println("<div class='mBottom15 travelLeft'>");
            out.println("<div class='boxTopLeft fixPNG'><div class='boxTop'></div><div class='boxTopRight fixPNG'></div><div class='c'></div></div> ");
            out.println("<div class='boxConner2 hotroDulich p0'>");
            out.println("<div class='hotromoi f14'>THÔNG TIN HỖ TRỢ</div>");
            out.println("<div class='hotroDt'><b>ĐT:</b> (04) 73068386</div>");
            out.println("<div class='hotroEm'><b>Email:</b> <a href='mailto:contact@muachung.vn'>contact@muachung.vn</a></div>");
            out.println("<div class='hotroPadding' id='noBoder'>");
            out.println("<b>Làm việc từ thứ 2 - Sáng thứ 7</b>");
            out.println("<ul class='mLeft5'>");
            out.println("<li><u>Sáng</u>: 8h - 12h</li>");
            out.println("<li><u>Chiều</u>: 13h30 - 18h</li>");
            out.println("</ul>");
            out.println("</div>");
            out.println("</div>");
            out.println(" <div class='boxConner2 hotroDulich'>");
            out.println("<div class='newBoxContent' id='p0'>");
            out.println("<div class='blockSold p5'>");
            out.println("<div class='newTitle dotLineNew'>Đang giảm giá</div>");
            out.println("<div class='blockSoldItem blockSoldHide1 mTop10 blockSoldItemBorder' id='blockSold9304'>");
            out.println("<div class='title'><a href='http://muachung.vn/san-pham/p-9304/Muc-trung-Nha-Trang-loai-1.html'>Mực trứng hương vị đậm đà</a></div>");
            out.println("<div class='soldTimer'>");
            out.println("Đã mua: 200 | Còn: 70 Sản phẩm");
            out.println("</div>");
            out.println("<div class='info'>");
            out.println("<div class='soldInfo'>");
            out.println("<a href='http://muachung.vn/san-pham/p-9304/Muc-trung-Nha-Trang-loai-1.html' class='soldImg'>");
            out.println("<img src='images/05760-41341892257.jpg' alt='deal image' width='90'>");
            out.println("</a>");
            out.println("<div class='box_discount fr'><b>Giảm <span>35</span>%</b></div>");
            out.println("Chỉ <b style='font-weight:bold;color:#fc0203;'>135.000đ </b>có 1kg mực trứng Nha Trang loại 1 hương vị đậm đà, thơm ngon giá <b>207.000đ</b>");
            out.println("<div align='right'><a href='http://muachung.vn/san-pham/p-9304/Muc-trung-Nha-Trang-loai-1.html' class='soldLink'>&gt;&gt; Chi tiết...</a></div>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='blockSoldItem blockSoldHide1 mTop10 blockSoldItemBorder' id='blockSold8086'>");
            out.println("<div class='title'><a href='http://muachung.vn/san-pham/p-8086/Boi-duong-kha-nang-chiu-dung-ap-luc-cho-tre.html'>Bồi dưỡng khả năng chịu áp lực</a></div>");
            out.println("<div class='soldTimer'>");
            out.println("Đã mua: 24 | Còn: 476 Bộ sách");
            out.println("</div>");
            out.println("<div class='info'>");
            out.println("<div class='soldInfo'>");
            out.println("<a href='http://muachung.vn/san-pham/p-8086/Boi-duong-kha-nang-chiu-dung-ap-luc-cho-tre.html' class='soldImg'>");
            out.println("<img src='images/image-41341894074.jpg' alt='deal image' width='90'>");
            out.println("</a>");
            out.println("<div class='box_discount fr'><b>Giảm <span>35</span>%</b></div>");
            out.println("Chỉ <b style='font-weight:bold;color:#fc0203;'>62.000đ</b> có Bí quyết chung sống hòa thuận giữa cha mẹ và con cái giá <b>95.000đ</b>");
            out.println("<div align='right'><a href='http://muachung.vn/san-pham/p-8086/Boi-duong-kha-nang-chiu-dung-ap-luc-cho-tre.html' class='soldLink'>&gt;&gt; Chi tiết...</a></div>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='blockSoldItem blockSoldHide1 mTop10 blockSoldItemBorder' id='blockSold8425'>");
            out.println("<div class='title'><a href='http://muachung.vn/san-pham/p-8425/Xuc-xich-hong-khoi-Canaal.html'>Xúc xích hong khói bổ dưỡng</a></div>");
            out.println("<div class='soldTimer'>");
            out.println("Đã mua: 41 | Còn: 59 Sản phẩm");
            out.println("</div>");
            out.println("<div class='info'>");
            out.println("<div class='soldInfo'>");
            out.println("<a href='http://muachung.vn/san-pham/p-8425/Xuc-xich-hong-khoi-Canaal.html' class='soldImg'>");
            out.println("<img src='images/sxtru-41341891439.jpg' alt='deal image' width='90'>");
            out.println("</a>");
            out.println("<div class='box_discount fr'><b>Giảm <span>32</span>%</b></div>");
            out.println("Chỉ <b style='font-weight:bold;color:#fc0203;'>157.000đ</b> có combo 5 gói xúc xích Canaal thơm ngon, bổ dưỡng giá <b>235.000đ</b>");
            out.println("<div align='right'><a href='http://muachung.vn/san-pham/p-8425/Xuc-xich-hong-khoi-Canaal.html' class='soldLink'>&gt;&gt; Chi tiết...</a></div>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</div>");
            out.println("</div>");
            out.println("");
            out.println("");
            out.println("");
            out.println("");
            out.println("");
            out.println("");
            out.println("");
            out.println("</div>");
            out.println("</div>");
            out.println("</div>");
            out.println("</div></div>");
            out.println("            <div>");
            out.println("<div id='fb_container' style='margin-bottom:15px'>");
            out.println("<div class='leftFacebook fixPNG'>");
            out.println("<div class='imgFacebook' align='center'><img src='images/facebook.png'></div>");
            out.println("<div class='rightFacebook fixPNG'></div>");
            out.println("<div class='c'></div>");
            out.println("</div>");
            out.println("<div class='detailFacebook' id='FB_blockleft'><iframe id='fb_iframe' src='images/likebox.htm' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:212px; height:420px;' allowtransparency='true'></iframe></div>");
            out.println("</div>");
            out.println("<script type='text/javascript'>");
            out.println("  shop.product.loadFB('blockleft', '%3Ciframe+id%3D%22fb_iframe%22+src%3D%22http%3A%2F%2Fwww.facebook.com%2Fplugins%2Flikebox.php%3Flocale%3Dvi%26href%3Dhttp%253A%252F%252Fwww.facebook.com%252FMuaChung%26amp%3Bwidth%3D212%26amp%3Bconnections%3D12%26amp%3Bstream%3Dfalse%26amp%3Bheader%3Dfalse%26amp%3Bheight%3D420%22+scrolling%3D%22no%22+frameborder%3D%220%22+style%3D%22border%3Anone%3B+overflow%3Ahidden%3B+width%3A212px%3B+height%3A420px%3B%22+allowTransparency%3D%22true%22%3E%3C%2Fiframe%3E');");
            out.println("</script></div>");
            out.println("        </div>");
            out.println("        <div class='c'></div>");
            out.println("    </div>");
            out.println("</div>");
            out.println("");
            out.println("");
            out.println("	");
            out.println("<div class='footer'>");
            out.println("<div align='center' class='mTop10'>");
            out.println("<a href='' class='footer_menu'>Trang chủ</a>");
            out.println("&nbsp;&nbsp;|&nbsp;&nbsp;");
            out.println("<a href='http://muachung.vn/san-pham-da-ban.html' class='footer_menu'>Sản phẩm đã bán</a>");
            out.println("&nbsp;&nbsp;|&nbsp;&nbsp;");
            out.println("<a href='http://muachung.vn/trang-quy-dinh-refund.html' class='footer_menu'>Quy định hoàn tiền</a>");
            out.println("&nbsp;&nbsp;|&nbsp;&nbsp;");
            out.println("<a href='http://muachung.vn/trang-quy-che.html' class='footer_menu'>Quy chế</a>");
            out.println("&nbsp;&nbsp;|&nbsp;&nbsp;");
            out.println("<a href='http://muachung.vn/trang-huong-dan-mua-hang.html' class='footer_menu'>Hướng dẫn mua hàng</a>");
            out.println("&nbsp;&nbsp;|&nbsp;&nbsp;");
            out.println("<a href='http://muachung.vn/trang-the-le.html' class='footer_menu'>Thể lệ</a>");
            out.println("&nbsp;&nbsp;|&nbsp;&nbsp;");
            out.println("<a href='http://muachung.vn/trang-lien-he.html' class='footer_menu'>Liên hệ</a>");
            out.println("</div>");
            out.println("<div class='footerWidth'>");
            out.println("<div class='footerPadding'>");
            out.println("<div class='preFooter fl'><a class='link_block' href='javascript:void(0)'></a></div>	<div class='footerRight jCarouselLite fl' style='visibility: visible; overflow: hidden; position: relative; z-index: 2; left: 0px; width: 874px; '>");
            out.println("<ul class='mTop10' id='footerSupport' style='margin: 0px; padding: 0px; position: relative; list-style-type: none; z-index: 1; width: 5244px; left: -874px; '><li style='overflow: hidden; float: left; width: 874px; height: 77px; '>");
            out.println("<div class='footerSupport fl'>");
            out.println("<b>MuaChung tại Cần Thơ</b>");
            out.println("<div class='iconFooter'>");
            out.println("Số 230, đường 30/4, Phường Hưng Lợi, Quận Ninh Kiều<br>");
            out.println("0710.3783192 - Fax: 0710.3783194<br>");
            out.println("<a href='mailto:cantho@muachung.vn'>cantho@muachung.vn</a>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</li>");
            out.println("<li style='overflow: hidden; float: left; width: 874px; height: 77px; '>");
            out.println("<div class='footerSupport fl'>");
            out.println("<b>MuaChung tại Hà Nội</b>");
            out.println("<div class='iconFooter'>");
            out.println("152 Phó Đức Chính, Ba Đình, Hà Nội<br>");
            out.println("(04) 73068386 - Fax: (04) 37154310<br>");
            out.println("<a href='mailto:contact@muachung.vn'>contact@muachung.vn</a>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='footerSupport fl'>");
            out.println("<b>MuaChung tại TP Hồ Chí Minh</b>");
            out.println("<div class='iconFooter'>");
            out.println("Số 5 Nguyễn Gia Thiều, P6, Q3 . Tầng 6, Tòa nhà Thiên Sơn<br>");
            out.println("(08) 39309940 - Fax: (08) 39309936<br>");
            out.println("<a href='mailto:hcm@muachung.vn'>hcm@muachung.vn</a>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</li>");
            out.println("<li style='overflow: hidden; float: left; width: 874px; height: 77px; '>");
            out.println("<div class='footerSupport fl'>");
            out.println("<b>MuaChung tại Đà Nẵng</b>");
            out.println("<div class='iconFooter'>");
            out.println("21 Hàm Nghi - Phường Vĩnh Trung - Quận Thanh Khê<br>");
            out.println("(0511) 2603603 - Fax: (0511) 3812168<br>");
            out.println("<a href='mailto:danang@muachung.vn'>danang@muachung.vn</a>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='footerSupport fl'>");
            out.println("<b>MuaChung tại Nha Trang</b>");
            out.println("<div class='iconFooter'>");
            out.println("79A Lê Đại Hành - Phường Tân Lập - Nha Trang - Khánh Hòa<br>");
            out.println("(058) 3513686 - Fax: (058) 3513.688<br>");
            out.println("<a href='mailto:nhatrang@muachung.vn'>nhatrang@muachung.vn</a>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</li>");
            out.println("<li style='overflow: hidden; float: left; width: 874px; height: 77px; '>");
            out.println("<div class='footerSupport fl'>");
            out.println("<b>MuaChung tại Hải Phòng</b>");
            out.println("<div class='iconFooter'>");
            out.println("310 Hai Bà Trưng (Cát Dài), Q.Lê Chân, Hải Phòng<br>");
            out.println("(031) 3786816 - Fax: (031) 3786815<br>");
            out.println("<a href='mailto:haiphong@muachung.vn'>haiphong@muachung.vn</a>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='footerSupport fl'>");
            out.println("<b>MuaChung tại Vũng Tàu</b>");
            out.println("<div class='iconFooter'>");
            out.println("Số 560 Trương Công Định - Phường 8 - TP. Vũng Tàu<br>");
            out.println("(064)3.584.818 - Fax: (064)3.584.817<br>");
            out.println("<a href='mailto:vungtau@muachung.vn'>vungtau@muachung.vn</a>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</li>");
            out.println("<li style='overflow: hidden; float: left; width: 874px; height: 77px; '>");
            out.println("<div class='footerSupport fl'>");
            out.println("<b>MuaChung tại Cần Thơ</b>");
            out.println("<div class='iconFooter'>");
            out.println("Số 230, đường 30/4, Phường Hưng Lợi, Quận Ninh Kiều<br>");
            out.println("0710.3783192 - Fax: 0710.3783194<br>");
            out.println("<a href='mailto:cantho@muachung.vn'>cantho@muachung.vn</a>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</li>");
            out.println("<li style='overflow: hidden; float: left; width: 874px; height: 77px; '>");
            out.println("<div class='footerSupport fl'>");
            out.println("<b>MuaChung tại Hà Nội</b>");
            out.println("<div class='iconFooter'>");
            out.println("152 Phó Đức Chính, Ba Đình, Hà Nội<br>");
            out.println("(04) 73068386 - Fax: (04) 37154310<br>");
            out.println("<a href='mailto:contact@muachung.vn'>contact@muachung.vn</a>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='footerSupport fl'>");
            out.println("<b>MuaChung tại TP Hồ Chí Minh</b>");
            out.println("<div class='iconFooter'>");
            out.println("Số 5 Nguyễn Gia Thiều, P6, Q3 . Tầng 6, Tòa nhà Thiên Sơn<br>");
            out.println("(08) 39309940 - Fax: (08) 39309936<br>");
            out.println("<a href='mailto:hcm@muachung.vn'>hcm@muachung.vn</a>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</li></ul>");
            out.println("</div>");
            out.println("<div class='nextFooter fr'><a class='link_block' href='javascript:void(0)' onclick='shop.footer.showNextSupport()'></a></div>	<div class='c'></div>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div style='border-top:1px dotted #858585;padding:0 15px 0'>");
            out.println("<div class='footerWidth'>");
            out.println("<div style='padding: 0 50px'>");
            out.println("<div class='footerLeft' style='width:150px;padding:5px'>");
            out.println("<div>");
            out.println("<a href='http://dangkywebsite.gov.vn/vn/websites/31/index.html' target='_blank'><img alt='' title='' border='0' src='images/v4APtGs+b0VZ5ObVn1IeQw==.jpgx'></a>");
            out.println("</div>");
            out.println("</div>");
            out.println("<div class='fl mTop15'>");
            out.println("Copyright © 2010. All rights reserved. Công ty cổ phần truyền thông Việt Nam – VC Corp<br>");
            out.println("<div class='mTop5'>Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 20/GXN-TTĐT Cục Quản lý PTTH &amp; TTĐT cấp ngày 19/11/2010</div>");
            out.println("</div>");
            out.println("<div class='fr mTop15'>");
            out.println("<a href='http://muachung.vn/trang-rss.html' title='RSS'>");
            out.println("<img src='images/rss.png' width='30' height='32' alt='rss feed'>");
            out.println("</a>");
            out.println("</div>");
            out.println("<div class='c'></div>");
            out.println("</div>");
            out.println("</div>");
            out.println("</div>");
            out.println("<script type='text/javascript'>");
            out.println("shop.footer.init(true);");
            out.println("</script></div>");
            out.println("</div>");
            out.println("");
            out.println("<a href='javascript:void(0)' onclick='jQuery(&#39;html,body&#39;).animate({scrollTop: 0},1000);' class='go_top' style='display: none; '></a></body></html>");

        } finally {
            out.close();
        }
    }

    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    /**
     * Handles the HTTP
     * <code>GET</code> method.
     *
     * @param request servlet request
     * @param response servlet response
     * @throws ServletException if a servlet-specific error occurs
     * @throws IOException if an I/O error occurs
     */
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        processRequest(request, response);
    }

    /**
     * Handles the HTTP
     * <code>POST</code> method.
     *
     * @param request servlet request
     * @param response servlet response
     * @throws ServletException if a servlet-specific error occurs
     * @throws IOException if an I/O error occurs
     */
    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        processRequest(request, response);
    }

    /**
     * Returns a short description of the servlet.
     *
     * @return a String containing servlet description
     */
    @Override
    public String getServletInfo() {
        return "Short description";
    }// </editor-fold>
}
